/**
 * 
 */
package org.mspring.codegen.engine;

import org.mspring.codegen.engine.entity.Entity;
import org.mspring.codegen.engine.entity.ServiceImplementEntity;
import org.mspring.codegen.engine.entity.ServiceInterfaceEntity;
import org.mspring.codegen.engine.handler.ServiceImplementHandler;
import org.mspring.codegen.engine.handler.ServiceInterfaceHandler;

/**
 * 
 * @author Gao Youbo
 * @since 2013-6-18
 */
public class Run {
    public static void main(String[] args) {
        String[] names = new String[]{
             "Ad", "Album", "Attachment", "Catalog", "Comment", "JobLog", "Job", "Link", "LinkType", "Log", 
        };
        for (String name : names) {
            Entity entity = new Entity();
            entity.setName(name);
            ServiceInterfaceEntity serviceInterfaceEntity = new ServiceInterfaceEntity(entity);
            ServiceImplementEntity serviceImplementEntity = new ServiceImplementEntity(serviceInterfaceEntity);
            new ServiceInterfaceHandler().process(serviceInterfaceEntity);
            new ServiceImplementHandler().process(serviceImplementEntity);
        }
    }
}
